package com.sghd.candy.module.shop.facade;

import com.sghd.common.socket.anno.InBody;
import com.sghd.common.socket.anno.InSession;
import com.sghd.common.socket.anno.SocketCommand;
import com.sghd.common.socket.anno.SocketModule;
import com.sghd.pojo.candy.shop.vo.ShopVo;
import com.sghd.pojo.fight.game.Result;

import java.util.List;

import static com.sghd.candy.utils.SocketEnum.SHOP_BUY;
import static com.sghd.candy.utils.SocketEnum.SHOP_LIST;
import static com.sghd.common.socket.session.SessionKeys.IDENTITY;

/**
 * @author Allen
 * @date 2019/01/09
 */
@SocketModule()
public interface ShopFacade {

    @SocketCommand(SHOP_LIST)
    List<ShopVo> shopList(@InSession(IDENTITY) long playerId);
    @SocketCommand(SHOP_BUY)
    Result<String> shopBuy(@InSession(IDENTITY) long playerId, @InBody("shopId") String shopId);
}
